<%-- 
    Document   : removecommittee
    Created on : Oct 30, 2012, 1:11:09 PM
    author : Mishal Parmar
--%>

<%@page import="java.util.ArrayList"%>
<%@page import="entityclasses.committee"%>
<%@page import="entityclasses.election"%>
<%@page import="controllers.deletecommittee"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>Remove Committee</title>
    </head>
    <body>
           <%
        
        deletecommittee committelist =new deletecommittee();
       committee com=new committee();
        ArrayList array = new ArrayList();  
        Object result = request.getAttribute("committelist");  

        array = (ArrayList<committee>) result;  
            %>
        <form name="committelist" action="deletecommittee" method="post">
      
          
       <h1> Election List </h1> <Table border=1>
        <%
        for(int i=0;i<array.size();i++)
         { %>
            <tr>
                <%
        com= (committee) array.get(i);
        int comid=com.getCom_id();
        %>
        
        <Td><input type="radio" value="<%=comid%>" name="comid"/> </Td>
        
        <Td> <% out.println(com.getCom_name()); %>  </Td>
        
      
        </tr>
        <% } %>
       
            
        </Table>
        <br/>
        <input type="submit" name="remove" value="Remove"/>

        </form>

    </body>
</html>
